package org.jeecg.modules.meter.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.meter.entity.MeterRoom;
import org.jeecg.modules.meter.mapper.MeterRoomMapper;
import org.jeecg.modules.meter.service.IMeterRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 水电表房间绑定
 * @Author: jeecg-boot
 * @Date:   2019-12-05
 * @Version: V1.0
 */
@Service
public class MeterRoomServiceImpl extends ServiceImpl<MeterRoomMapper, MeterRoom> implements IMeterRoomService {

    @Autowired
    private MeterRoomMapper meterRoomMapper;

    @Override
    public MeterRoom getMeterRoom(String meterId, String roomId) {
        return meterRoomMapper.getMeterRoom(meterId,roomId);
    }

    @Override
    public void deleteMeterRoom(String meterId, String oldRoomId, String userId) {
        meterRoomMapper.deleteMeterRoom(meterId,oldRoomId,userId);
    }

//    @Override
//    public List<MeterRoom> selectByMeterId(String id) {
//        return meterRoomMapper.selectByMeterId(id);
//    }
}
